package com.ftwj.demo.permission.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
*
* <p>Title: ResourceBean</p>  
* <p>Description: ResourceBean对象</p>
* <p>Copyright: Copyright (c) 2020 </p>  
* <p>Company: 兰州飞天网景信息产业有限公司</p>    
* @author WangSLi
* @date 2020年4月8日 下午3:50:07
* @version V1.0
 */
@TableName("tb_resource")
@ApiModel(value="ResourceBean对象", description="")
public class ResourceBean implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "资源主键")
    @TableId(value = "resource_id", type = IdType.AUTO)
    private Integer resourceId;

    @ApiModelProperty(value = "资源名称")
    private String resourceName;

    @ApiModelProperty(value = "资源标记")
    private String resourceTitle;

    @ApiModelProperty(value = "资源图标")
    private String icon;

    @ApiModelProperty(value = "资源路径")
    private String url;

    @ApiModelProperty(value = "资源类型（1.菜单，2.按钮）")
    private Integer type;

    @ApiModelProperty(value = "资源权限")
    private String permission;

    @ApiModelProperty(value = "资源描述")
    private String descript;

    @ApiModelProperty(value = "请求方式")
    private String method;

    @ApiModelProperty(value = "父级资源id")
    private Integer pid;

    @ApiModelProperty(value = "资源排序")
    private Integer sort;

    @ApiModelProperty(value = "创建时间",hidden = true)
    private Date createTime;

    @ApiModelProperty(value = "创建人",hidden = true)
    private Integer createUser;

    @TableLogic
    @ApiModelProperty(value = "资源状态（1.正常，-1.已删除）")
    private Integer state;

    public Integer getResourceId() {
        return resourceId;
    }

    public void setResourceId(Integer resourceId) {
        this.resourceId = resourceId;
    }
    public String getResourceName() {
        return resourceName;
    }

    public void setResourceName(String resourceName) {
        this.resourceName = resourceName;
    }
    public String getResourceTitle() {
        return resourceTitle;
    }

    public void setResourceTitle(String resourceTitle) {
        this.resourceTitle = resourceTitle;
    }
    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }
    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }
    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }
    public String getPermission() {
        return permission;
    }

    public void setPermission(String permission) {
        this.permission = permission;
    }
    public String getDescript() {
        return descript;
    }

    public void setDescript(String descript) {
        this.descript = descript;
    }
    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }
    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }
    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
    public Integer getCreateUser() {
        return createUser;
    }

    public void setCreateUser(Integer createUser) {
        this.createUser = createUser;
    }
    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return "ResourceBean{" +
        "resourceId=" + resourceId +
        ", resourceName=" + resourceName +
        ", resourceTitle=" + resourceTitle +
        ", icon=" + icon +
        ", url=" + url +
        ", type=" + type +
        ", permission=" + permission +
        ", descript=" + descript +
        ", method=" + method +
        ", pid=" + pid +
        ", sort=" + sort +
        ", createTime=" + createTime +
        ", createUser=" + createUser +
        ", state=" + state +
        "}";
    }
}
